{% extends 'layout.html' %}
{% block title %}巡检算法列表{% endblock %}
{% block content %}
<div class="row">
    <div class="col" align="center">
        <h2>智能巡检算法列表</h2>
        <div align="right"><a role="button" class="btn btn-info" href="/ai_inspect/algorithm_create/">新增</a></div>
        <table class="table table-striped">
            <tr>
                <th>巡检算法名称</th>
                <th>巡检请求主题</th>
                <th>巡检类型</th>
                <th>适用换电站</th>
                <th>告警名称</th>
            </tr>
            {% for algorithm in algorithm_list %}
            <tr>
                <td><a href="/algorithm_metric/{{algorithm.algorithm_name}}">{{ algorithm.algorithm_name }}</a></td>
                <td><a href="/algorithm_request/{{algorithm.algorithm_topic}}">{{ algorithm.algorithm_topic }}</a></td>
                <td>{{ algorithm.inspect_type }}</td>
                <td>{{ algorithm.swap_maker }}</td>
                <td>{{ algorithm.alarm_name }}</td>
            </tr>
            {% endfor %}
        </table>
    </div>
</div>
{% endblock %}